package edu.zut.cs.software.teach.Base.dao;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.domain.Example;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.PagingAndSortingRepository;

import edu.zut.cs.software.teach.Base.domain.BaseEntity;


/**
 * @ClassName GenericDao
 * @Description TODO
 * @Author wanagyunfei
 * @Version 1.0
 */
@NoRepositoryBean
public interface GenericDao <T extends BaseEntity<PK>, PK extends Serializable> extends PagingAndSortingRepository<T, PK> {

	List<T> findAll(Example<T> ex);
}
